
package us.hornerscorners.lollipop.config;

/*
* #%L
 * * LollipopRouter
 * *
 * %%
 * Copyright (C) 2013 - 2014 Jim Horner
 * *
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */

import java.util.ArrayList;
import java.util.List;

import javax.enterprise.context.ApplicationScoped;

import javax.enterprise.inject.Alternative;


/**
 * Class description
 *
 *
 * @version        v1.0, 2014-09-06
 * @author         Jim Horner
 */
@Alternative
@ApplicationScoped
public class LollipopConfig {

    /** Field description */
    private Integer acceptedSocketTimeout;

    /** Field description */
    private String name;

    /** Field description */
    private int port;

    /** Field description */
    private List<RoutingConfig> routings;

    /** Field description */
    private int threadKeepAlive;

    /** Field description */
    private int threadPoolMax;

    /** Field description */
    private int threadPoolSize;

    /**
     * Constructs ...
     *
     */
    public LollipopConfig() {

        super();
        this.routings = new ArrayList<>();
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public Integer getAcceptedSocketTimeout() {
        return acceptedSocketTimeout;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public int getPort() {
        return port;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public List<RoutingConfig> getRoutings() {
        return routings;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public int getThreadKeepAlive() {
        return threadKeepAlive;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public int getThreadPoolMax() {
        return threadPoolMax;
    }

    /**
     * Method description
     *
     *
     * @return
     */
    public int getThreadPoolSize() {
        return threadPoolSize;
    }

    /**
     * Method description
     *
     *
     * @param acceptedSocketTimeout
     */
    public void setAcceptedSocketTimeout(Integer acceptedSocketTimeout) {
        this.acceptedSocketTimeout = acceptedSocketTimeout;
    }

    /**
     * Method description
     *
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Method description
     *
     *
     * @param port
     */
    public void setPort(int port) {
        this.port = port;
    }

    /**
     * Method description
     *
     *
     * @param routings
     */
    public void setRoutings(List<RoutingConfig> routings) {
        this.routings = routings;
    }

    /**
     * Method description
     *
     *
     * @param threadKeepAlive
     */
    public void setThreadKeepAlive(int threadKeepAlive) {
        this.threadKeepAlive = threadKeepAlive;
    }

    /**
     * Method description
     *
     *
     * @param threadPoolMax
     */
    public void setThreadPoolMax(int threadPoolMax) {
        this.threadPoolMax = threadPoolMax;
    }

    /**
     * Method description
     *
     *
     * @param threadPoolSize
     */
    public void setThreadPoolSize(int threadPoolSize) {
        this.threadPoolSize = threadPoolSize;
    }
}
